package cn.iune.erp.inventory;

import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.UniqueConstraint;
import javax.persistence.Version;

import com.justep.baas.data.RowState;

//物料分类
//客户分类
//供应商分类
//。。。分类
@Entity
@Table(name="FileGroup",uniqueConstraints={@UniqueConstraint(name="fileGroup1",columnNames={"groupLabel", "fParent", "enterpriseNo"})})
@NamedQuery(name="FileGroup.findAll", query="SELECT s FROM FileGroup s")
public class FileGroup {

	@Id
	@Column(length=32)
	private String fID;
	
	@Column(length=32)
	private String systemCode;
	@Column(length=4)
	private String billType;
	@Column(length=20)
	private String billTypeName;
	private Date orderDate;
	@Column(length=10)
	private String state;
	@Column(length=10)
	private String status;

	@Column(length=20)
	String groupLabel;

	@Column(length=256)
	String groupFullID;
	@Column(length=128)
	String groupFullLabel;
	
	private int nodeLevel = 0;
	@Column(length=32)
	private String nodeKind;
	@Column(length=50)
	private String sortNo;
	@Column(length=32)
	private String fParent;
	
	
	
	/////////////////////////////////////////////////////////////////////
	//存货会计科目（进货单）-----------------------应收会计科目（销售发票）
	@Column(length=10)
	private String captionNo1;//科目编码
	@Column(length=50)
	private String captionName1;//科目名称
	//应交增值税会计科目（进货单）---------收入会计科目（销售发票）
	@Column(length=10)
	private String captionNo2;//科目编码
	@Column(length=50)
	private String captionName2;//科目名称
	//账款会计科目（进货单）-----------------------应交增值税会计科目（销售发票）
	@Column(length=10)
	private String captionNo3;//科目编码
	@Column(length=50)
	private String captionName3;//科目名称
	//费用会计科目（进货单）----------------------应交营业税会计科目（销售发票）
	@Column(length=10)
	private String captionNo4;//科目编码
	@Column(length=50)
	private String captionName4;//科目名称
	//预付账款会计科目（进货单）-------------营业税会计科目（销售发票）
	@Column(length=10)
	private String captionNo5;//科目编码
	@Column(length=50)
	private String captionName5;//科目名称
	//差异会计科目（进货单）---------------------主营业务税金及附加会计科目（销售发票）
	@Column(length=10)
	private String captionNo6;//科目编码
	@Column(length=50)
	private String captionName6;//科目名称
	////////////////////////////////////////////////////////////////////////////
	
	
	
	@Column(length=255)
	private String comments;
	
	@Column(length=15)
	private String cUsercode;
	@Column(length=20)
	private String cUsername;//制单人
	private Timestamp cDatetime;
	@Column(length=15)
	private String tUsercode;
	@Column(length=20)
	private String tUsername;//审核人
	private Timestamp tDatetime;
	@Column(length=15)
	private String eUsercode;
	@Column(length=20)
	private String eUsername;//关单人
	private Timestamp eDatetime;
	
	@Column(length=65)
	private String userId;

	@Column(length=128)
	private String enterpriseNo;
	@Column(length=128)
	private String enterpriseName;

	@Version
	private int version = 0;
	
	@Transient//非持久字段
	private RowState rowState;
	public RowState getRowState() {
		return rowState;
	}
	public void setRowState(RowState rowState) {
		this.rowState = rowState;
	}


	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}
	public String getfID() {
		return fID;
	}
	public void setfID(String fID) {
		this.fID = fID;
	}
	public String getSystemCode() {
		return systemCode;
	}
	public void setSystemCode(String systemCode) {
		this.systemCode = systemCode;
	}
	public String getBillType() {
		return billType;
	}
	public void setBillType(String billType) {
		this.billType = billType;
	}
	public String getBillTypeName() {
		return billTypeName;
	}
	public void setBillTypeName(String billTypeName) {
		this.billTypeName = billTypeName;
	}
	public Date getOrderDate() {
		return orderDate;
	}
	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public int getNodeLevel() {
		return nodeLevel;
	}
	public void setNodeLevel(int nodeLevel) {
		this.nodeLevel = nodeLevel;
	}
	public String getNodeKind() {
		return nodeKind;
	}
	public void setNodeKind(String nodeKind) {
		this.nodeKind = nodeKind;
	}
	public String getSortNo() {
		return sortNo;
	}
	public void setSortNo(String sortNo) {
		this.sortNo = sortNo;
	}
	public String getfParent() {
		return fParent;
	}
	public void setfParent(String fParent) {
		this.fParent = fParent;
	}
	public String getComments() {
		return comments;
	}
	public void setComments(String comments) {
		this.comments = comments;
	}
	public String getcUsercode() {
		return cUsercode;
	}
	public void setcUsercode(String cUsercode) {
		this.cUsercode = cUsercode;
	}
	public String getcUsername() {
		return cUsername;
	}
	public void setcUsername(String cUsername) {
		this.cUsername = cUsername;
	}
	public Timestamp getcDatetime() {
		return cDatetime;
	}
	public void setcDatetime(Timestamp cDatetime) {
		this.cDatetime = cDatetime;
	}
	public String gettUsercode() {
		return tUsercode;
	}
	public void settUsercode(String tUsercode) {
		this.tUsercode = tUsercode;
	}
	public String gettUsername() {
		return tUsername;
	}
	public void settUsername(String tUsername) {
		this.tUsername = tUsername;
	}
	public Timestamp gettDatetime() {
		return tDatetime;
	}
	public void settDatetime(Timestamp tDatetime) {
		this.tDatetime = tDatetime;
	}
	public String geteUsercode() {
		return eUsercode;
	}
	public void seteUsercode(String eUsercode) {
		this.eUsercode = eUsercode;
	}
	public String geteUsername() {
		return eUsername;
	}
	public void seteUsername(String eUsername) {
		this.eUsername = eUsername;
	}
	public Timestamp geteDatetime() {
		return eDatetime;
	}
	public void seteDatetime(Timestamp eDatetime) {
		this.eDatetime = eDatetime;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getEnterpriseNo() {
		return enterpriseNo;
	}
	public void setEnterpriseNo(String enterpriseNo) {
		this.enterpriseNo = enterpriseNo;
	}
	public String getEnterpriseName() {
		return enterpriseName;
	}
	public void setEnterpriseName(String enterpriseName) {
		this.enterpriseName = enterpriseName;
	}
	public String getGroupLabel() {
		return groupLabel;
	}
	public void setGroupLabel(String groupLabel) {
		this.groupLabel = groupLabel;
	}
	public String getGroupFullID() {
		return groupFullID;
	}
	public void setGroupFullID(String groupFullID) {
		this.groupFullID = groupFullID;
	}
	public String getGroupFullLabel() {
		return groupFullLabel;
	}
	public void setGroupFullLabel(String groupFullLabel) {
		this.groupFullLabel = groupFullLabel;
	}
	public String getCaptionNo1() {
		return captionNo1;
	}
	public void setCaptionNo1(String captionNo1) {
		this.captionNo1 = captionNo1;
	}
	public String getCaptionName1() {
		return captionName1;
	}
	public void setCaptionName1(String captionName1) {
		this.captionName1 = captionName1;
	}
	public String getCaptionNo2() {
		return captionNo2;
	}
	public void setCaptionNo2(String captionNo2) {
		this.captionNo2 = captionNo2;
	}
	public String getCaptionName2() {
		return captionName2;
	}
	public void setCaptionName2(String captionName2) {
		this.captionName2 = captionName2;
	}
	public String getCaptionNo3() {
		return captionNo3;
	}
	public void setCaptionNo3(String captionNo3) {
		this.captionNo3 = captionNo3;
	}
	public String getCaptionName3() {
		return captionName3;
	}
	public void setCaptionName3(String captionName3) {
		this.captionName3 = captionName3;
	}
	public String getCaptionNo4() {
		return captionNo4;
	}
	public void setCaptionNo4(String captionNo4) {
		this.captionNo4 = captionNo4;
	}
	public String getCaptionName4() {
		return captionName4;
	}
	public void setCaptionName4(String captionName4) {
		this.captionName4 = captionName4;
	}
	public String getCaptionNo5() {
		return captionNo5;
	}
	public void setCaptionNo5(String captionNo5) {
		this.captionNo5 = captionNo5;
	}
	public String getCaptionName5() {
		return captionName5;
	}
	public void setCaptionName5(String captionName5) {
		this.captionName5 = captionName5;
	}
	public String getCaptionNo6() {
		return captionNo6;
	}
	public void setCaptionNo6(String captionNo6) {
		this.captionNo6 = captionNo6;
	}
	public String getCaptionName6() {
		return captionName6;
	}
	public void setCaptionName6(String captionName6) {
		this.captionName6 = captionName6;
	}
	
}
